package com.yinhe.music.yhmusic.downmanager;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yinhe.music.yhmusic.R;
import com.yinhe.music.yhmusic.constants.IConstants;
import com.yinhe.music.yhmusic.db.bean.DownloadMusicEntity;

import java.util.List;


/**
 * @author hasee
 * @date 2017/8/15
 */

public class DownListAdapter extends BaseQuickAdapter<DownloadMusicEntity, BaseViewHolder> {

    public DownListAdapter(List<DownloadMusicEntity> downloadMusicEntityList) {
        super(R.layout.new_music_recyclerview_item,downloadMusicEntityList);
    }

    @Override
    protected void convert(BaseViewHolder helper, DownloadMusicEntity item) {
        helper.setText(R.id.playlist_song, item.getSongname())
                .setText(R.id.playlist_singer, item.getSingername());
        helper.setVisible(R.id.image_get,true);
        helper.addOnClickListener(R.id.playlist_more);
    }
}
